.PHONY: publish_client consume_client
all:publish_client consume_client
publish_client : protoctor.cpp ../MQcommon/mq_proto.pb.cc ../MQcommon/mq_msg.pb.cc ../MQthird/include/muduo/proto/codec.cc
	g++ -g -std=c++11 $^ -g -o $@ -I../MQthird/include -L../MQthird/lib  -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz
consume_client : consumer.cpp ../MQcommon/mq_proto.pb.cc ../MQcommon/mq_msg.pb.cc ../MQthird/include/muduo/proto/codec.cc
	g++ -g -std=c++11 $^ -g -o $@ -I../MQthird/include -L../MQthird/lib  -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz